var Koa = require('koa'),
    router = require('koa-router')(),
    render = require('koa-art-template'),
    path = require('path');

var app = new Koa();

// 配置 koa_art_tempalte 
render(app, {
    root: path.join(__dirname, 'views'),
    extname: '.html',
    debug: process.env.NODE_ENV != 'production',
});



router.get('/', async(ctx, next) => {
    console.log('路由中间件')
    next()
});
router.get('/', async(ctx, next) => {
    ctx.body = 'bbb'

});
app.use(router.routes());
app.listen(3000);